﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DAL.Entity;

namespace DAL.Persistencia
{
    public class LogErroDAL
    {

        private NewTierraEntities Con;

        public LogErroDAL()
        {
            Con = new NewTierraEntities();
        }

        public void Salvar(LogErro l)
        {
            try
            {
                Con.AddToLogErro(l);
                Con.SaveChanges();
            }
            catch 
            {                
                throw;
            }
        }

    }
}
